<?php

Route::group(['middleware' => ['web','auth:admin'], 'prefix' => 'admin', 'namespace' => 'Modules\Article\Http\Controllers'], function()
{
    //把原来自动生成的普通路由改成为了资源路由
    //注册的一个文章管理的资源路由
    Route::resource('/article', 'ArticleController')->middleware("permission:admin");
});
